import getlink from "@/api/getapi.js"
let BannerTvM = {
    state:{
        bannertv:""
    },
    mutations:{
        UPBANNERTVDATA(state,payload){
            state.bannertv=payload
        }
    },
    actions:{
        LINK_BANNERTV_DATA(conbannertv,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.bannertv,"bannertv")
                conbannertv.commit("UPBANNERTVDATA",ok.data.bannertv)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default BannerTvM;
